console: allow log level threshold adjustments
authorJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2016 16:48:49 +0000 (17:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 12 Dec 2016 16:48:49 +0000 (17:48 +0100)
commita2c3c9f0819edb338c0c798b5509e19206ddd286
tree1cd5ce294fabd032c3f2d94d4cec9a5d8df01682
parent48f11132b7977510b75c9d96539514a55801f654
console: allow log level threshold adjustments

... from serial console so that one doesn't always need to reboot to
see more / less messages.

Note that upper thresholds are sticky, i.e. while they get adjusted
upwards when the lower threshold would otherwise end up above the upper
one, they don't get adjusted when reducing the lower one. Full
flexibility is available only via a future sysctl interface.

Note further that (meaningless) large threshold values aren't being
rejected, for the sake of not adding more checks to the code than are
really necessary for safe operation.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/char/console.c